package com.aeroyun.macross.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 收入
 * </p>
 *
 * @author dongjiming
 * @since 2018-08-10
 */
@TableName("cs_income")
public class Income extends Model<Income> {

    private static final long serialVersionUID = 1L;

    /**
     * 收入ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 所属农户
     */
    @TableField("peasant_household_id")
    private Integer peasantHouseholdId;
    /**
     * 收入类型
     */
    @TableField("income_type")
    private String incomeType;
    /**
     * 年收入
     */
    @TableField("annual_income")
    private String annualIncome;
    /**
     * 收入说明
     */
    @TableField("income_remarks")
    private String incomeRemarks;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPeasantHouseholdId() {
        return peasantHouseholdId;
    }

    public void setPeasantHouseholdId(Integer peasantHouseholdId) {
        this.peasantHouseholdId = peasantHouseholdId;
    }

    public String getIncomeType() {
        return incomeType;
    }

    public void setIncomeType(String incomeType) {
        this.incomeType = incomeType;
    }

    public String getAnnualIncome() {
        return annualIncome;
    }

    public void setAnnualIncome(String annualIncome) {
        this.annualIncome = annualIncome;
    }

    public String getIncomeRemarks() {
        return incomeRemarks;
    }

    public void setIncomeRemarks(String incomeRemarks) {
        this.incomeRemarks = incomeRemarks;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Income{" +
        "id=" + id +
        ", peasantHouseholdId=" + peasantHouseholdId +
        ", incomeType=" + incomeType +
        ", annualIncome=" + annualIncome +
        ", incomeRemarks=" + incomeRemarks +
        "}";
    }
}
